#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}


artifactId=lrc32/phoronix-test-suite
version=10.8.4

# hub.docker.com/szopen
group=swr.cn-east-3.myhuaweicloud.com/intetech

# docker
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t ${artifactId}:${version} --build-arg PHORONIX_VERSION=${version} --push .
# docker build --no-cache --platform=linux/amd64 -t ${artifactId}:${version}-amd64 --build-arg PHORONIX_VERSION=${version} -o type=docker,dest=- . > ${artifactId}-amd64.tar
# docker build --no-cache --platform=linux/arm64 -t ${artifactId}:${version}-arm64 --build-arg PHORONIX_VERSION=${version} -o type=docker,dest=- . > ${artifactId}-arm64.tar
# #docker tag  ${artifactId}:${version}  ${artifactId}:latest
